home *** CD-ROM | disk | FTP | other *** search
/ Over 1,000 Windows 95 Programs / Over 1000 Windows 95 Programs (Microforum) (Disc 1).iso / 0790 / rfc868.txt < prev   
Text File  |  1995-07-18  |  3KB  |  117 lines

  1.  
  2. Network Working Group                                    J. Postel - ISI
  3. Request for Comments: 868                           K. Harrenstien - SRI
  4.                                                                 May 1983
  5.  
  6.  
  7.  
  8.                              Time Protocol
  9.  
  10.  
  11.  
  12.  
  13. This RFC specifies a standard for the ARPA Internet community.  Hosts on
  14. the ARPA Internet that choose to implement a Time Protocol are expected
  15. to adopt and implement this standard.
  16.  
  17. This protocol provides a site-independent, machine readable date and
  18. time.  The Time service sends back to the originating source the time in
  19. seconds since midnight on January first 1900.
  20.  
  21. One motivation arises from the fact that not all systems have a
  22. date/time clock, and all are subject to occasional human or machine
  23. error.  The use of time-servers makes it possible to quickly confirm or
  24. correct a system's idea of the time, by making a brief poll of several
  25. independent sites on the network.
  26.  
  27. This protocol may be used either above the Transmission Control Protocol
  28. (TCP) or above the User Datagram Protocol (UDP).
  29.  
  30. When used via TCP the time service works as follows:
  31.  
  32.    S: Listen on port 37 (45 octal).
  33.  
  34.    U: Connect to port 37.
  35.  
  36.    S: Send the time as a 32 bit binary number.
  37.  
  38.    U: Receive the time.
  39.  
  40.    U: Close the connection.
  41.  
  42.    S: Close the connection.
  43.  
  44.    The server listens for a connection on port 37.  When the connection
  45.    is established, the server returns a 32-bit time value and closes the
  46.    connection.  If the server is unable to determine the time at its
  47.    site, it should either refuse the connection or close it without
  48.    sending anything.
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56. Postel                                                          [Page 1]
  57.  
  58.  
  59.  
  60. RFC 868                                                         May 1983
  61. Time Protocol                                                           
  62.  
  63.  
  64. When used via UDP the time service works as follows:
  65.  
  66.    S: Listen on port 37 (45 octal).
  67.  
  68.    U: Send an empty datagram to port 37.
  69.  
  70.    S: Receive the empty datagram.
  71.  
  72.    S: Send a datagram containing the time as a 32 bit binary number.
  73.  
  74.    U: Receive the time datagram.
  75.  
  76.    The server listens for a datagram on port 37.  When a datagram
  77.    arrives, the server returns a datagram containing the 32-bit time
  78.    value.  If the server is unable to determine the time at its site, it
  79.    should discard the arriving datagram and make no reply.
  80.  
  81. The Time
  82.  
  83. The time is the number of seconds since 00:00 (midnight) 1 January 1900
  84. GMT, such that the time 1 is 12:00:01 am on 1 January 1900 GMT; this
  85. base will serve until the year 2036.
  86.  
  87. For example:
  88.  
  89.    the time  2,208,988,800 corresponds to 00:00  1 Jan 1970 GMT,
  90.  
  91.              2,398,291,200 corresponds to 00:00  1 Jan 1976 GMT,
  92.  
  93.              2,524,521,600 corresponds to 00:00  1 Jan 1980 GMT,
  94.  
  95.              2,629,584,000 corresponds to 00:00  1 May 1983 GMT,
  96.  
  97.         and -1,297,728,000 corresponds to 00:00 17 Nov 1858 GMT.
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114. Postel                                                          [Page 2]
  115.  
  116.  
  117.